
import '../../net/fm_base_net_domain.dart';
import '../../net/fm_http_request.dart';
import '../../net/fm_net_param_manager.dart';

class FMLoginApi extends FMBaseNetDomain {

  String phone;

  String code;

  FMLoginApi({
    required this.phone,
    required this.code
  });

  @override
  String requestUrl() {
    return FMNetParamManager().getDefaultUrlPath("/directs/scene");
  }

  @override
  FMHttpMethodType methodType() {
    return FMHttpMethodType.post;
  }

  @override
  Map<String, dynamic> requestParams() {
    return {
      "start" : phone,
      "necessary" : code,
    };
  }
}